import Vue from 'vue'
import VueRouter from 'vue-router'
const Home = () => import('@/components/home/Home')
const Store = () => import('@/components/store/Store')
const Order = () => import('@/components/order/Order')
const Profile = () => import('@/components/profile/Profile')

Vue.use(VueRouter)
export default new VueRouter({
  routes: [
    {
      path: '/',
      redirect: '/home'
    },
    {
      path: '/home',
      component: Home
    },
    {
      path: '/store',
      component: Store
    },
    {
      path: '/order',
      component: Order
    },
    {
      path: '/profile',
      component: Profile
    }
  ]
})
